package org.jeecg.modules.online.config.p020b;

import com.alibaba.fastjson.JSONObject;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.online.cgform.entity.OnlCgformField;
import org.jeecg.modules.online.cgform.utils.CgformUtil;
import org.jeecg.modules.online.cgform.utils.OnlineDbHandler;
import org.jeecg.modules.online.cgreport.entity.OnlCgreportItem;
import org.jeecg.modules.online.cgreport.model.ParamItemVo;

/* renamed from: org.jeecg.modules.online.config.b.e */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/modules/online/config/b/e.class */
public class OnlineFieldConfig {

    /* renamed from: a */
    private String f544a;

    /* renamed from: b */
    private String f545b;

    /* renamed from: c */
    private String f546c;

    /* renamed from: d */
    private String f547d;

    /* renamed from: e */
    private String f548e;

    /* renamed from: f */
    private String f549f;

    /* renamed from: g */
    private Integer f550g;

    /* renamed from: h */
    private String f551h;

    /* renamed from: i */
    private String f552i;

    /* renamed from: j */
    private String f553j;

    public void setName(String name) {
        this.f544a = name;
    }

    public void setType(String type) {
        this.f545b = type;
    }

    public void setView(String view) {
        this.f546c = view;
    }

    public void setMode(String mode) {
        this.f547d = mode;
    }

    public void setVal(String val) {
        this.f548e = val;
    }

    public void setRule(String rule) {
        this.f549f = rule;
    }

    public void setIsSearch(Integer isSearch) {
        this.f550g = isSearch;
    }

    public void setMainField(String mainField) {
        this.f551h = mainField;
    }

    public void setMainTable(String mainTable) {
        this.f552i = mainTable;
    }

    public void setTable(String table) {
        this.f553j = table;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof OnlineFieldConfig) {
            OnlineFieldConfig onlineFieldConfig = (OnlineFieldConfig) o;
            if (onlineFieldConfig.m78a(this)) {
                Integer isSearch = getIsSearch();
                Integer isSearch2 = onlineFieldConfig.getIsSearch();
                if (isSearch == null) {
                    if (isSearch2 != null) {
                        return false;
                    }
                } else if (!isSearch.equals(isSearch2)) {
                    return false;
                }
                String name = getName();
                String name2 = onlineFieldConfig.getName();
                if (name == null) {
                    if (name2 != null) {
                        return false;
                    }
                } else if (!name.equals(name2)) {
                    return false;
                }
                String type = getType();
                String type2 = onlineFieldConfig.getType();
                if (type == null) {
                    if (type2 != null) {
                        return false;
                    }
                } else if (!type.equals(type2)) {
                    return false;
                }
                String view = getView();
                String view2 = onlineFieldConfig.getView();
                if (view == null) {
                    if (view2 != null) {
                        return false;
                    }
                } else if (!view.equals(view2)) {
                    return false;
                }
                String mode = getMode();
                String mode2 = onlineFieldConfig.getMode();
                if (mode == null) {
                    if (mode2 != null) {
                        return false;
                    }
                } else if (!mode.equals(mode2)) {
                    return false;
                }
                String val = getVal();
                String val2 = onlineFieldConfig.getVal();
                if (val == null) {
                    if (val2 != null) {
                        return false;
                    }
                } else if (!val.equals(val2)) {
                    return false;
                }
                String rule = getRule();
                String rule2 = onlineFieldConfig.getRule();
                if (rule == null) {
                    if (rule2 != null) {
                        return false;
                    }
                } else if (!rule.equals(rule2)) {
                    return false;
                }
                String mainField = getMainField();
                String mainField2 = onlineFieldConfig.getMainField();
                if (mainField == null) {
                    if (mainField2 != null) {
                        return false;
                    }
                } else if (!mainField.equals(mainField2)) {
                    return false;
                }
                String mainTable = getMainTable();
                String mainTable2 = onlineFieldConfig.getMainTable();
                if (mainTable == null) {
                    if (mainTable2 != null) {
                        return false;
                    }
                } else if (!mainTable.equals(mainTable2)) {
                    return false;
                }
                String table = getTable();
                String table2 = onlineFieldConfig.getTable();
                return table == null ? table2 == null : table.equals(table2);
            }
            return false;
        }
        return false;
    }

    /* renamed from: a */
    protected boolean m78a(Object obj) {
        return obj instanceof OnlineFieldConfig;
    }

    public int hashCode() {
        Integer isSearch = getIsSearch();
        int hashCode = (1 * 59) + (isSearch == null ? 43 : isSearch.hashCode());
        String name = getName();
        int hashCode2 = (hashCode * 59) + (name == null ? 43 : name.hashCode());
        String type = getType();
        int hashCode3 = (hashCode2 * 59) + (type == null ? 43 : type.hashCode());
        String view = getView();
        int hashCode4 = (hashCode3 * 59) + (view == null ? 43 : view.hashCode());
        String mode = getMode();
        int hashCode5 = (hashCode4 * 59) + (mode == null ? 43 : mode.hashCode());
        String val = getVal();
        int hashCode6 = (hashCode5 * 59) + (val == null ? 43 : val.hashCode());
        String rule = getRule();
        int hashCode7 = (hashCode6 * 59) + (rule == null ? 43 : rule.hashCode());
        String mainField = getMainField();
        int hashCode8 = (hashCode7 * 59) + (mainField == null ? 43 : mainField.hashCode());
        String mainTable = getMainTable();
        int hashCode9 = (hashCode8 * 59) + (mainTable == null ? 43 : mainTable.hashCode());
        String table = getTable();
        return (hashCode9 * 59) + (table == null ? 43 : table.hashCode());
    }

    public String toString() {
        return "OnlineFieldConfig(name=" + getName() + ", type=" + getType() + ", view=" + getView() + ", mode=" + getMode() + ", val=" + getVal() + ", rule=" + getRule() + ", isSearch=" + getIsSearch() + ", mainField=" + getMainField() + ", mainTable=" + getMainTable() + ", table=" + getTable() + ")";
    }

    public String getName() {
        return this.f544a;
    }

    public String getType() {
        return this.f545b;
    }

    public String getView() {
        return this.f546c;
    }

    public String getMode() {
        return this.f547d;
    }

    public String getVal() {
        return this.f548e;
    }

    public String getRule() {
        return this.f549f;
    }

    public Integer getIsSearch() {
        return this.f550g;
    }

    public String getMainField() {
        return this.f551h;
    }

    public String getMainTable() {
        return this.f552i;
    }

    public String getTable() {
        return this.f553j;
    }

    public OnlineFieldConfig() {
    }

    public OnlineFieldConfig(JSONObject jSONObject) {
        String string = jSONObject.getString("field");
        String[] split = string.split(CgformUtil.f233E);
        if (split.length == 1) {
            this.f544a = string;
        } else if (split.length == 2) {
            this.f544a = split[1];
            this.f553j = split[0];
        }
        String string2 = jSONObject.getString("type");
        String string3 = jSONObject.getString("dbType");
        if (oConvertUtils.isNotEmpty(string3) && OnlineDbHandler.m286a(string3)) {
            this.f545b = string3;
        } else {
            this.f545b = string2;
        }
        if ("list_multi".equals(string2) || CgformUtil.f241M.equals(string2)) {
            this.f546c = string2;
        }
        this.f549f = jSONObject.getString("rule");
        this.f548e = jSONObject.getString("val");
        this.f547d = "single";
        this.f550g = 1;
    }

    public OnlineFieldConfig(OnlCgreportItem onlCgreportItem) {
        this.f544a = onlCgreportItem.getFieldName();
        this.f545b = onlCgreportItem.getFieldType();
        this.f547d = onlCgreportItem.getSearchMode();
        this.f550g = onlCgreportItem.getIsSearch();
    }

    public OnlineFieldConfig(ParamItemVo paramItemVo) {
        this.f544a = paramItemVo.getFieldName();
        this.f545b = paramItemVo.getFieldType();
        this.f547d = paramItemVo.getSearchMode();
        this.f550g = 1;
    }

    public OnlineFieldConfig(OnlCgformField onlCgformField) {
        this.f544a = onlCgformField.getDbFieldName();
        this.f545b = onlCgformField.getDbType();
        this.f547d = onlCgformField.getQueryMode();
        this.f550g = onlCgformField.getIsQuery();
        this.f551h = onlCgformField.getMainField();
        this.f552i = onlCgformField.getMainTable();
        if ("1".equals(onlCgformField.getQueryConfigFlag())) {
            this.f546c = onlCgformField.getQueryShowType();
        } else {
            this.f546c = onlCgformField.getFieldShowType();
        }
    }
}
